/**
 *    @file       timerthread.h
 *
 *    @brief      
 *    @details
 *
 *    @version    1.0
 *    @date       02/14/2014 12:32:35 AM
 *
 *    @author     Threophilus (), wangtf418@gmail.com 
 */
#ifndef _SF_TIMERTHREAD_H_
#define _SF_TIMERTHREAD_H_
#include "asynworkthread.h"
#include "timer.h"

class timerthread : public asynworkthread
{
public:
	timerthread(bf_uint32_t type, bf_uint32_t size, bf_uint32_t index, const comargs *args);
	virtual ~timerthread();

public:
	virtual bf_int_t run();

protected:
	virtual bf_int_t proc_msg(message *msg);
	virtual void check_timer();
	timer m_timer;
	bf_time_t m_cur_time;
};

#endif

